from django.urls import path, re_path
from .views import AddFavView,MovieDetailView,AddCommentsView,AddGradeView
from operation.views import RecommendView
from users.views import IndexView

app_name = 'movieinfo'

urlpatterns = [
    re_path('movie/(?P<movie_id>\d+)/', MovieDetailView.as_view(), name='movie_detail'),  # 电影详情页
    path('add_fav/',AddFavView.as_view(),name='add_fav'),  # 收藏
    path('add_comment/', AddCommentsView.as_view(), name="add_comment"),  # 增加评论
    path('search/',IndexView.as_view(), name='search'),  # 搜索

    path('grade/',AddGradeView.as_view(),name="add_grade"),  # 评级

    #path('recommend/',RecommendView.as_view(),name='movie_recommend'),  # 推荐
]